﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Cspl.AnimalFight.Lib.Interface;
using Cspl.AnimalFight.Lib.EventHandlers;

namespace Cspl.AnimalFight.Lib.Data
{
    class Duck:AnimalBase,IAttack
    {
        public event AttackDelegate AttackEvent;

        public void Attack(EventHandlers.Animals target)
        {
            if (AttackEvent != null) {
                AttackEventHandler e = new AttackEventHandler{
                    AnimalName = this.AnimalName,
                    AttackPower = this.AttackPower,
                    Target = target
                };
            }
        }
    }
}
